package com.zhangshuo.patternDesign.obverser.eventDrivern;

import java.util.EventObject;

/**
 * Created by shuo.zhang on 2017-10-22.
 */
public class ButtonEvent extends EventObject{
    /**
     * Constructs a prototypical Event.
     *
     * @param source The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    public ButtonEvent(Button source) {
        super(source);
    }

    public Button  getButton(){
        return (Button) getSource();
    }



}
